package cn.tedu._03vehice.mapper;

import cn.tedu._03vehice.pojo.entity.Vehicle;
import cn.tedu._03vehice.pojo.vo.VehicleListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VehicleMapper {

    int insertVehicle(Vehicle vehicle);

     List<VehicleListVO> listVehicle(@Param("brand") String brand,
                                @Param("license")String license,
                                @Param("userId")Long userId);

    int del(@Param("id")Long id, @Param("userId")Long userId);

    int delVehicle(Long id, Long userId);



}
